import request from '@/utils/request'

export function getUserList(data) {
    return request({
        url: '/users',
        method: 'get',
        params: data
    })
}
export function stateChanged(url) {
    return request({
        url: url,
        method: 'put',
        // params: data
    })
}
export function getUsers(data) {
    return request({
        url: '/users',
        method: 'get',
        params: data
    })
}
export function addUsers(url, type, data) {
    return request({
        url: url,
        method: type,
        data: data
    })
}
export function deleteUsers(url) {
    return request({
        url: url,
        method: 'delete'
    })
}

export function getUsersId(url) {
    return request({
        url: url,
        method: 'get'
    })
}